#define __DEBUG__
// by Xeno
#define THIS_FILE "fn_netcalleventsto.sqf"
#include "x_setup.sqf"

__TRACE_1("","_this")
private ["_tt", "_obj", "_isLocal"];
_tt = _this select 1;
_obj = if (typeName _tt == "ARRAY") then {_tt select 0} else {_tt};
if (isNil "_obj" || {isNull _obj}) exitWith {};
_islocal = if (typeName _obj != "GROUP") then {
	local _obj
} else {
	local (leader _obj)
};
__TRACE_1("","_islocal")
if (!_isLocal) then {
	GVAR(nsto) = _this;
	publicVariableServer QGVAR(nsto);
} else {
	_this call FUNC(NetRunEventSTO);
};